home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Directorty Opus 5 - Magellan
/
Opus 5 - Magellan.iso
/
Extras
/
PlayMod10
/
PlayMod
< prev
next >
Wrap
Text File
|
1996-01-04
|
1KB
|
49 lines
/*
* PlayMod - Play modules with HippoPlayer
* (C) 1996 by Piergiorgio Ghezzo
*
* $VER: PlayMod 1.0 (04.01.96)
*/
PlayerName = 'DH0:UTILITIES/HiP'
OPTIONS RESULTS
PARSE ARG Modules
/*** Se non viene specificato il nome del file esce subito ***/
IF Modules = ''
THEN DO
SAY '0A'x||'
PlayMod
Play a module with HippoPlayer'
SAY ' (C) 1996 by Piergiorgio Ghezzo'
SAY '0A'x||'Usage: PlayMod <filename> [filename] [...]'||'0A'x
EXIT 0
END
/*** Controllo se HippoPlayer e' gia' presente in memoria ***/
Result = SHOW('Ports','HIPPOPLAYER')
IF Result = 0 THEN ADDRESS COMMAND(PlayerName)
CheckLoop:
Result = SHOW('Ports','HIPPOPLAYER')
IF Result = 0 THEN SIGNAL CheckLoop
ADDRESS 'HIPPOPLAYER'
/*** Leggo il numero di moduli presenti ***/
GET NFIL
Pos = Result + 1
PARSE VAR Modules FileName Modules
DO WHILE FileName ~= ''
/*** Aggiunge il modulo alla lista ***/
ADD FileName
PARSE VAR Modules FileName Modules
END
/*** Sceglie il primo dei moduli appena caricati ***/
CHOOSE Pos
/*** Esegue il modulo ***/
PLAY